package com.authine.cloudpivot.ext.dto.system;

import com.authine.mvp.app.launcher.domain.SelectorFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @ClassName RoleDto
 * @Description: 角色
 * @Author fj
 * @Date 2021/5/4
 * @Version V1.0
 **/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "RoleDto")
public class RoleDto {
    @Schema(description = "角色id")
    private String id;
    @Schema(description = "组织id")
    private List<SelectorFormat> organization_id;
    @Schema(description = "组织名称")
    private String organization_name;
    @Schema(description = "角色名称")
    private String name;
    @Schema(description = "描述")
    private String description;
    @Schema(description = "资源id列表")
    private String resource_ids;
    @Schema(description = "版本")
    private Integer version;
    @Schema(description = "资源列表")
    private List<ResourceDto> resourceList;
    @Schema(description = "角色名称集合")
    private List<String> names;
    @Schema(description = "角色id列表")
    private List<String> ids;
    @Schema(description = "资源id")
    private String resourceId;
    @Schema(description = "数据查看权限")
    private String row_type;
    @Schema(description = "管理范围id列表，以逗号分隔的字符串")
    private String tag_scope;
    @Schema(description = "数据授权方式，2：按标签 3：按人员")
    private String authType;
}
